package top.skihub.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.skihub.mapper.SearchGoodsMapper;
import top.skihub.pojo.Goods;
import top.skihub.service.SearchGoodsService;

import java.util.List;

@Service
public class SerachGoodsServiceImpl implements SearchGoodsService {

    @Autowired
    private SearchGoodsMapper searchGoodsMapper;

    @Override
    public List<Goods> list1() {
        return  searchGoodsMapper.list1();
    }

    @Override
    public List<Goods> list2(String goodsName) {
        return searchGoodsMapper.list2(goodsName);
    }

}
